{% extends "base.html" %}

{% block title %}{{ article.title }}{% endblock %}

{% block page_common_content %}
<div class="row">
    <div class="page-header col-lg-12">
        <h1>{{ article.title }}</h1>
    </div>
    <div class="col-lg-12">
        <div class="article-content">
            <div class="row">
                <div class="col-lg-12">
                    {% include '_articleInfo.html' %}
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12 post-text post-text">
                    {% if article.markdown_html %}
                        {{ article.markdown_html|safe }}
                    {% else %}
                        {{ article.content|markdown|safe }}
                    {% endif %}
                </div>
            </div>
        </div>
    </div>
</div>

<!--PC和WAP自适应版-->
<div id="SOHUCS" sid="{{ article.id }}" ></div> 
<script type="text/javascript"> 
(function(){ 
var appid = 'cytkj1ELV'; 
var conf = 'prod_f1d01bc5639448fa84526934b382bc69'; 
var width = window.innerWidth || document.documentElement.clientWidth; 
if (width < 960) { 
window.document.write('<script id="changyan_mobile_js" charset="utf-8" type="text/javascript" src="https://changyan.sohu.com/upload/mobile/wap-js/changyan_mobile.js?client_id=' + appid + '&conf=' + conf + '"><\/script>'); } else { var loadJs=function(d,a){var c=document.getElementsByTagName("head")[0]||document.head||document.documentElement;var b=document.createElement("script");b.setAttribute("type","text/javascript");b.setAttribute("charset","UTF-8");b.setAttribute("src",d);if(typeof a==="function"){if(window.attachEvent){b.onreadystatechange=function(){var e=b.readyState;if(e==="loaded"||e==="complete"){b.onreadystatechange=null;a()}}}else{b.onload=a}}c.appendChild(b)};loadJs("https://changyan.sohu.com/upload/changyan.js",function(){window.changyan.api.config({appid:appid,conf:conf})}); } })(); </script>
{% endblock %}

{% block scripts %}
{{super()}}

<script type="text/x-mathjax-config">
  MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
</script>
<script type="text/javascript" async
  src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-AMS_CHTML">
</script>


{% endblock %}